import request from "../index.js";
// 获取商家分类列表
export const getMerchantCategoryListApi = (data) => {
	return request({
		url: `/seller/cate_list`,
		data
	})
}
// 设置商家分类指定字段值
export const cateUpdateApi = (data) => {
	return request({
		url: `/seller/cate_update`,
		method: 'post',
		data
	})
}
// 商家分类新增/编辑
export const submitCateTempApi = (data) => {
	return request({
		url: '/seller/cate_temp?action=save',
		method: 'post',
		data
	})
}
// 商家状态设置
export const setUserStatusApi = (data) => {
	return request({
		url: '/seller/update',
		method: 'post',
		data
	})
}
// 获取商家详情
export const getUserDetailApi = (data, type = '') => {
	let url = type ? '/seller/item_temp?action=save' : '/seller/item_temp'
	return request({
		url: url,
		method: 'post',
		data
	})
}
// 获取商家参数配置
export const getconfigItemApi = (data, type = '') => {
	let url = type ? '/seller/config_item?action=save' : '/seller/config_item'
	return request({
		url: url,
		method: 'post',
		data
	})
}
// 获取商家余额记录
export const getBalanceRecordApi = (data) => {
	return request({
		url: '/seller/wallet_log',
		data
	})
}
// 获取商家代金券列表
export const getVoucherListApi = (data) => {
	return request({
		url: '/seller/voucher_list',
		data
	})
}
// 编辑商家代金券状态
export const goodsUpdateApi = (data) => {
	return request({
		url: '/seller/voucher_update',
		method: 'post',
		data
	})
}
// 商家增发申请记录列表
export const getApplyListApi = (data) => {
	return request({
		url: '/seller/raise_record',
		data
	})
}
// 商家增发申请操作
export const applyReviewApi = (data) => {
	return request({
		url: '/seller/raise_review',
		method: 'post',
		data
	})
}
// 获取商家套餐列表
export const getComboListApi = (data) => {
	return request({
		url: '/seller/combo_list',
		data
	})
}
// 获取商家套餐修改参数
export const comboUpdateApi = (data) => {
	return request({
		url: '/seller/combo_update',
		method: 'post',
		data
	})
}
// 商家套餐券审核操作
export const comboApplyReviewApi = (data) => {
	return request({
		url: '/seller/combo_review',
		method: 'post',
		data
	})
}
// 商家券消费情况
export const getWriteListApi = (data) => {
	return request({
		url: '/seller/write_rank',
		data
	})
}